<?php

namespace app\company\model;

use app\common\model\BaseModel;
use app\common\model\DealerGoods;
use app\common\model\DealerGoodsSpec;
use think\model\relation\BelongsTo;

class CompanyTransferOrderDetail extends BaseModel
{
    public function orders(): BelongsTo
    {
        return $this->belongsTo(CompanyTransferOrder::class, 't_oid');
    }

    public function goods(): BelongsTo
    {
        return $this->belongsTo(DealerGoods::class,'dealer_goods_id');
    }

    public function spec(): BelongsTo
    {
        return $this->belongsTo(DealerGoodsSpec::class,'dealer_goods_spec_id');
    }
    public function goodsSpec(): BelongsTo
    {
        return $this->belongsTo(DealerGoodsSpec::class,'dealer_goods_spec_id');
    }
}